import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/api/xs/login',
    method: 'post',
    data
  })
}

export function getInfo(token) {
  return request({
    url: '/admin/getuserinfo',
    method: 'post',
  })
}

export function logout() {
  return request({
    url: '/user/logout',
    method: 'post'
  })
}

export function userlist( data) {
  return request({
    url: '/admin/userlist',
    // method: 'ge',
    method:"post",
    data:data
  })
}

